#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int minimizedStringLength(string s) {
        unordered_set<char> once;
        for (auto& c : s)
        {
            once.insert(c);
        }
        return once.size();
    }
};